package com.tarena.lbs.basic.web.service.impl;

import com.tarena.lbs.basic.web.dao.repository.AreaRepository;
import com.tarena.lbs.basic.web.service.AreaService;
import com.tarena.lbs.pojo.basic.bo.AreaBO;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.Collections;
import java.util.List;

@Slf4j
@Service
public class AreaServiceImpl implements AreaService {
    @Autowired
    private AreaRepository areaRepository;
    @Override
    public List<AreaBO> queryAreaList(long parentId) {
        return areaRepository.queryAreaList(parentId);
    }
}
